import { http } from "@/utils/http";
import internal from "stream";

type Result = {
  code: internal;
  message: string;
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  return http.request<Result>("get", "/api/auth/user/menus");
  //return http.request<Result>("get", "/api/auth/get-async-routes");
};
